<div class="hd-20170823">
    <div class="banner-bg1">
      <div class="hd-banenr">
        <div class="banner-text">
            Entrar <a href="#">Geekvida.es &gt;&gt;</a>
        </div>
      </div>
    </div>
    <div class="hd-container">
        <div class="hd-main-content">
            <div style="height:50px;"></div>
           <div class="hd-display-block w1100" style="border:none;">
              <div class="panel-layout">
                <ul>
                  <li><a class="hdPageLInk" href="#display1">Mas Vendidos</a></li>
                  <li><a class="hdPageLInk" href="#display2">XIAOMI</a></li>
                  <li><a class="hdPageLInk" href="#display3">Hoverboard</a></li>
                  <li><a class="hdPageLInk" href="#display4">Productos en liquidación</a></li>
                  <li><a class="hdPageLInk" href="#display5">Gadgets</a></li>
                  <li style="margin-top:15px;"><a class="hdPageLInk" href="#Top" style="border: none; width: 85px; height: 30px;"><img style="width:100%" src="./images/201708234.png"></a></li>
                </ul>
              </div>
            </div>
        </div>
    </div>
   
  </div>
  <style>
    .hd-20170823{min-width: 1300px;background:url(../img/201708232.jpg) #48484c repeat;overflow: hidden;}
    .hd-20170823 .banner-bg1{background: url(./images/201708231.jpg) no-repeat center top;height:722px;min-width: 1300px;}
    .hd-20170823 .hd-banenr{position: relative;width: 1103px;margin: 0px auto;height:382px;}
    .hd-banenr .banner-text{position: absolute;top:18px; right: 0px; font-size: 14px; width: 195px; text-align: center; background: #fff; padding: 5px; color: #000;border: 1px solid #dedede;}
    .display .hd-display-block {width:984px;position: relative;}
    .hd-banenr .banner-text a {color:#33aa00;}
    ul.lis1 .hd-link-img {display: block;}
    .hd-main-content .display {margin-top:15px;padding-bottom: 25px;}       
    .review-wrapper{text-align: center;padding:0 5px;color:#fff;}
    .review-wrapper .product-info {line-height: 15px; height: 30px; overflow: hidden; display: block;color: #fff; font-size: 15px; margin: 0;margin-top:12px;}
    .hd-main-content .lis1 {margin:0px;}
    .hd-main-content ul li.small-list { height: 276px; width: 200px; text-align: center; margin: 8px; position: relative; -webkit-transition: all 0.3s ease; -moz-transition: all 0.3s ease; -ms-transition: all 0.3s ease; -o-transition: all 0.3s ease; transition: all 0.3s ease; float: left; padding: 15px; background: url(../img/201708235.png) no-repeat; background-size: contain;}
    .transformImg1 {position: absolute; top: -41px; left: -194px; transform: rotate(178deg);-webkit-transform: rotate(178deg);-ms-transform: rotate(178deg)}
    .transformImg2 { bottom: -48px; right: -188px; transform: rotate(-2deg); -webkit-transform: rotate(-2deg); -ms-transform: rotate(-2deg);position: absolute;}
    .hd-main-content ul li.small-list:hover {transform: translateY(-6px);-webkit-transform: translateY(-6px); -o-transform: translateY(-6px); -ms-transform: translateY(-6px); -moz-transform: translateY(-6px);}
    .hd-main-content ul li.small-list:before{pointer-events: none;position: absolute;z-index: -1;content: '';top: 100%;left: 5%;height: 10px;width: 90%;opacity: 0;background: -webkit-radial-gradient(center, ellipse, rgba(0, 0, 0, 0.35) 0%, transparent 80%);background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 80%);-webkit-transition-duration: 0.3s;transition-duration: 0.3s;-webkit-transition-property: transform, opacity;transition-property: transform, opacity;}
    .hd-main-content ul li.small-list:hover:before{opacity: 1;-webkit-transform: translateY(5px);transform: translateY(5px);}
    .small-list .discount-number2{ position: absolute; height: 50px; width: 50px; font-size: 16px; color: #454449; font-weight: bold; top: 0px; right: 0px; line-height: 50px; text-align: center; background: #ffd800; border-radius: 50%;}
    .hd-main-content ul li.small-list img {width:85%;}
    .hd-main-content .price { color: #fff; display: block; text-align: center; line-height: 18px; float: left; margin-top: 10px; width: 100%; margin-bottom: 9px;}
    .hd-main-content .old-price {font-size: 14px;text-decoration: line-through;margin-right: 5px;}
    .current-price { font-size: 25px;font-weight:bold;}
    .hd-main-content ul li.small-list .hd-btn-buy {color:#291811;padding: 4px 10px; background:url(./images/201708231.png) no-repeat center top;border-radius: 3px;}
    .hd-main-content .list-title { text-align: center; font-size: 35px; font-weight: bold; line-height: 108px; color: #61c9cc; font-family: 'microsoft yahei'; margin: 0; display: flex; justify-content: center; margin-bottom: 40px;}
    .panel-layout{width: 200px; height: 299px; position: fixed; top: 0; margin-left: 1050px;-webkit-transform: scale(0.01); -moz-transform: scale(0.01); -o-transform: scale(0.01); -ms-transform: scale(0.01); transform: scale(0.01); -webkit-transition: all .6s linear 0s; -moz-transition: all .6s linear 0s; -o-transition: all .6s linear 0s; -ms-transition: all .6s linear 0s; transition: all .6s linear 0s; visibility: hidden; text-align: center;background: url(./images/2017082310.jpg)no-repeat center top;}
    .panel-layout.active { visibility: visible; -webkit-transform: scale(1); -moz-transform: scale(1); -o-transform: scale(1); -ms-transform: scale(1); transform: scale(1);}
    .panel-layout ul { position: absolute; left: 15px; width: 85%; top: 50px;}
    .panel-layout ul li{list-style: none; height: 38px; line-height: 38px;}
    .panel-layout ul li a{display: block; width: 100%; color: #fff; text-align: center; font-size: 14px;margin: 0px auto; border-bottom: 1px solid #fff;}
    .panel-layout ul li a:hover, .panel-layout ul li.current a{color:#fff100;border-color:#fff100;}
  </style>

  <script type="text/javascript">
    (function($){
        $(function(){
          var str1 = '', str2 = '';
          for(var i = 0; i < 12; i++){
            str1 += ` <li class="small-list">
                        <a class="hd-link-img" href="#"><img src="./images/2016040616.jpg" alt="Blackview Ultra A6 Plus 2GB 16GB Dorado"></a>
                        <div class="review-wrapper">
                          <a href="#">
                            <span class="product-info" href="#">Blackview Ultra A6 Plus 2GB 16GB Dorado</span>
                            <span class="price">
                              <span class="old-price">129.95€</span>
                              <span class="current-price">99.95€</span>
                            </span>
                            <span class="hd-btn-buy">Comprar &gt;&gt;</span>
                          </a>
                        </div>
                        <span class="discount-number2">-25€</span>
                      </li>`;
          }

          for(var i = 0; i < 5; i++){
            str2 += `<div class="display"  id="display${i + 1}">
                        <h2 class="list-title">
                          <img src="../img/201708236.jpg">
                          <span>XIAOMI</span>
                          <img src="../img/201708237.jpg">
                        </h2>
                        <div class="hd-display-block transformDIv w1100">
                            <img class="transformImg1" src="./images/201708233.png">
                            <ul class="lis1 clearfloat">${str1}</ul>
                            <img class="transformImg2" src="./images/201708233.png">
                        </div>
                      </div>`;
          }
          $(".hd-main-content").prepend(str2);

          var sideNav = $(".panel-layout");
          $(window).on("scroll",function(){
            var sideNavShow = $(".banner-bg1").offset().top + $(".banner-bg1").outerHeight(true)-200;
            var modTop = [];
            if($(this).scrollTop()>=sideNavShow){
                sideNav.addClass("active");
              }
              else{
                sideNav.removeClass("active");
              }
            
            for (var i = 0; i < $(".panel-layout ul li .hdPageLInk").length - 1; i++) {
                modTop[i] = $($(".panel-layout ul li a").eq(i).attr("href")).offset().top-35;

                if ($(window).scrollTop() >= modTop[i]) {
                  $(".panel-layout ul li").removeClass('current').eq(i).addClass('current');
                };
              };
          });
          
          
          $(".panel-layout .hdPageLInk,.topNav-list a").on("click",function(e){
            e.preventDefault();
            var aHash = this.hash;
            $("html,body").animate({
              scrollTop: aHash=="#Top" ? 0 : $(aHash).offset().top-30
            });
          });
        });

    })(jQuery);
  </script>